﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model.BBS
{
    /// <summary>
    /// 实体类BBS 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class BBS
    {
        public BBS()
        { }
        #region Model
        private int _id;
        private string _title;
        private int _columnid;
        private string _userid;
        private string _usernickname;
        private int _clicktotal;
        private int _replytotal;
        private DateTime _publishtime;
        private int _istop;
        private int _iselite;
        private string _content;
        private int _unitid;
        private DateTime _lastposttime;
        private string _lastpostauthor;
        private bool _isapproved;
        private string _approvedby;
        private DateTime _approvedon;
        private string regardingobjectid = "00000000-0000-0000-0000-000000000000";
        /// <summary>
        /// BBS主表主键
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 栏目ID
        /// </summary>
        public int ColumnID
        {
            set { _columnid = value; }
            get { return _columnid; }
        }
        /// <summary>
        /// 发布人ID
        /// </summary>
        public string UserID
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 发布人昵称
        /// </summary>
        public string UserNickName
        {
            set { _usernickname = value; }
            get { return _usernickname; }
        }
        /// <summary>
        /// 点击次数
        /// </summary>
        public int ClickTotal
        {
            set { _clicktotal = value; }
            get { return _clicktotal; }
        }
        /// <summary>
        /// 回帖数量
        /// </summary>
        public int ReplyTotal
        {
            set { _replytotal = value; }
            get { return _replytotal; }
        }
        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime PublishTime
        {
            set { _publishtime = value; }
            get { return _publishtime; }
        }
        /// <summary>
        /// 是否置顶，1置顶
        /// </summary>
        public int IsTop
        {
            set { _istop = value; }
            get { return _istop; }
        }
        /// <summary>
        /// 是否精华，1为精华贴
        /// </summary>
        public int IsElite
        {
            set { _iselite = value; }
            get { return _iselite; }
        }
        /// <summary>
        /// BBS正文
        /// </summary>
        public string Content
        {
            set { _content = value; }
            get { return _content; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int UnitID
        {
            set { _unitid = value; }
            get { return _unitid; }
        }
        /// <summary>
        /// 最后发贴时间
        /// </summary>
        public DateTime LastPostTime
        {
            set { _lastposttime = value; }
            get { return _lastposttime; }
        }
        /// <summary>
        /// 最后发贴人
        /// </summary>
        public string LastPostAuthor
        {
            set { _lastpostauthor = value; }
            get { return _lastpostauthor; }
        }
        /// <summary>
        /// 审核状态
        /// </summary>
        public bool IsApproved
        {
            set { _isapproved = value; }
            get { return _isapproved; }
        }
        /// <summary>
        /// 审核人
        /// </summary>
        public string ApprovedBy
        {
            set { _approvedby = value; }
            get { return _approvedby; }
        }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime ApprovedOn
        {
            set { _approvedon = value; }
            get { return _approvedon; }
        }
        /// <summary>
        /// 关联站点ID
        /// </summary>
        public string RecardingObjectId
        {
            set { regardingobjectid = value; }
            get { return regardingobjectid; }
        }
        #endregion Model

    }
}
